import { useRoutes } from 'react-router-dom'
import routerList from './router'
import { GlobalProvider } from './context';
import { ConfigProvider } from 'antd';
import zhCN from 'antd/locale/zh_CN';
import 'dayjs/locale/zh-cn';
const App = () => {

  // 添加路由表
  const router = useRoutes(routerList);

  return (
    <div className="App">
      <ConfigProvider locale={zhCN} >
        <GlobalProvider >
          {router}
        </GlobalProvider>
      </ConfigProvider>
    </div>
  )
}



export default App